import request from '@/utils/request'
import {
	encrypt,
	decrypt
} from "@/utils/jsencrypt.js";

// 获取房源详情
export function goodsInfo(query) {
	return request({
		url: '/app/mall/goods/getInfo',
		method: 'get',
		params: query
	})
}

//获取房源动态海报
export function goodsposter(query) {
	return request({
		url: '/app/mall/goods/poster',
		method: 'get',
		params: query
	})
}

//收藏房源
export function goodscollect(query) {
	return request({
		url: '/app/mall/collect/goods/collect',
		method: 'get',
		params: query
	})
}

//房源管理列表
export function goodsManageList(query) {
	return request({
		url: '/app/mall/goods/manage/list',
		method: 'get',
		params: query
	})
}
//租房-审核通过小区
export function goodsPass(data) {
	return request({
		url: '/app/mall/goods/pass',
		method: 'get',
		params: data
	})
}

//租房-审核驳回小区
export function goodsReject(data) {
	return request({
		url: '/app/mall/goods/reject',
		method: 'get',
		params: data
	})
}
//删除小区
export function deleteGoods(ids) {
    return request({
        url: '/app/mall/goods/'+ids,
        method: 'delete'
    })
}
//下架小区
export function offShelfGoods(query) {
    return request({
       url: '/app/mall/goods/offShelf',
       method: 'get',
       params: query
    })
}1
//上架小区
export function onShelfGoods(query) {
    return request({
        url: '/app/mall/goods/onShelf',
        method: 'get',
        params: query
    })
}